package com.wish.blessingroad.controller;


import com.wish.blessingroad.common.ResponseResult;
import com.wish.blessingroad.entity.UAddress;
import com.wish.blessingroad.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 收货地址
 * </p>
 *
 * @author dhc
 * @since 2019-02-18
 */
@Controller
@RequestMapping("/blessingroad/address")
public class AddressController {


    /**
     * 添加
     */
    @RequestMapping("/saveAddress")
    @ResponseBody
    public Object saveAddress(UAddress uAddress){
        uAddress.insert();
        return new ResponseResult<>("").success();

    }
}

